package com.HeJing.面向对象特征之一_封装;

/**
 * ClassName: PersonTest
 * Package: com.HeJing.封装
 * Description:
 *
 * @Author: HeJing
 * @Create: 2023-03-24 11:26
 * @Version: 1.0
 */
public class PersonTest {
    public static void main(String[] args) {

        // 创建Person 实例
        Person p1 = new Person();
        p1.setAge(20);
        System.out.println(p1.getAge());
    }
}





















